import request from "@/utils/request";

// 查询应用列表
export function listApp(query) {
  return request({
    url: "/biz/app/list",
    method: "get",
    params: query,
  });
}
// 首页查询应用列表
export function listAllApp() {
  return request({
    url: "/biz/app/listAll",
    method: "get",
  });
}

// 查询应用详细
export function getApp(id) {
  return request({
    url: "/biz/app/" + id,
    method: "get",
  });
}

// 新增应用
export function addApp(data) {
  return request({
    url: "/biz/app",
    method: "post",
    data: data,
  });
}

// 修改应用
export function updateApp(data) {
  return request({
    url: "/biz/app",
    method: "put",
    data: data,
  });
}

// 删除应用
export function delApp(id) {
  return request({
    url: "/biz/app/" + id,
    method: "delete",
  });
}

// 导出应用
export function exportApp(query) {
  return request({
    url: "/biz/app/export",
    method: "get",
    params: query,
  });
}
